package com.g2.admin.model.qo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;

@Data
public class BaseQo {
    @ApiModelProperty(value = "分页起始值，默认为0", name = "pageNo")
    private int pageNo = 0;
    @ApiModelProperty(value = "每页数据，默认为10，最大为2000", name = "size")
    @Max(2000)
    private int size = 10;

    @ApiModelProperty(value = "排序字段", name = "sortField")
    private String sortField;
    @ApiModelProperty(value = "排序方式：desc 或 asc", name = "sortMethod")
    private String sortMethod;
    /**
     * 查询起止时间
     */
    private String startTime;
    private String endTime;
}
